using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using CMS.Core.DataInterfaces;
using CMS.Core.Domain;
using CMS.Data;
using CMS.Presenters;
using AjaxPro;

namespace CMS.Web.CompDenu
{
    public partial class SelectVanBan : System.Web.UI.Page, ISelectVanBanView
    {
        SelectVanBanPresenter presenter;
        IList<VanBan> vbList;

        public String ObjId = "";
        public String HidId = "";

        public SelectVanBan()
        {
            this.presenter = new SelectVanBanPresenter(this);
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.RaiseClientEvent();

            this.ObjId = this.Request.QueryString["objId"];
            this.HidId = this.Request.QueryString["hidId"];

            if (!this.IsPostBack)
            {
                this.drpVanBan.DataSource = this.VanBanList;
                this.DataBind();
            }
        }
        protected void RaiseClientEvent()
        {
            Utility.RegisterTypeForAjax(typeof(CMS.Presenters.SelectVanBanPresenter));
            drpVanBan.Attributes.Add("ondblclick ", "moveRight()");
            drpVanBan.Attributes.Add("onkeypress ", "handleEnterKey(event)");
            drpVBChon.Attributes.Add("ondblclick ", "moveLeft()");
        }

        #region ISelectPersonView Members

        public IList<VanBan> VanBanList
        {
            get { return this.vbList; }
            set { this.vbList = value; }
        }

        #endregion
    }
}
